package cn.wuxing.mediation.businessplatform.domain.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @description: <描述>
 * @date: 2024/9/16 11:21
 * @author: yang
 * @version: 1.0
 */
@Getter
@AllArgsConstructor
public enum PreLitigationMediationEventTypeEnum {
    // 1.民商事案件 2.侵权纠纷

    CIVILIAN_MERCHANT("1", "民商事案件"),
    TORCH_DISPUTE("2", "侵权纠纷")
    ;


    private final String code;

    private final String desc;

    public static String getDescByCode(String code) {
        for (PreLitigationMediationEventTypeEnum item : PreLitigationMediationEventTypeEnum.values()) {
            if (item.getCode().equals(code)) {
                return item.getDesc();
            }
        }
        return null;
    }
}
